﻿using System;

namespace NavFx
{
	/// <summary>
	/// Thrown when an attempt is made to set a target of an unsupported type
	/// </summary>
	public class TargetNotSupportedException: Exception
	{
		/// <summary>
		/// Default constructor
		/// </summary>
		public TargetNotSupportedException()
			: base("The object type is not supported as a Target for the component.")
		{
			//nothing else to do
		}

		/// <summary>
		/// Constructor overload supporting a custom error message
		/// </summary>
		public TargetNotSupportedException(string message)
			: base(message)
		{
			//nothing else to do
		}

		/// <summary>
		/// Constructor overload supporting a custom error message and inner exception
		/// </summary>
		public TargetNotSupportedException(string message, Exception innerException)
			: base(message, innerException)
		{
			//nothing else to do
		}
	}
}
